home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / 7edit / source / svaecreate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.9 KB  |  53 lines

  1. /*
  2.     File:        SVAECreate.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Original version by Jon Lansdell and Nigel Humphreys.
  7.                 3.1 updates by Greg Sutton.
  8.  
  9.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 7/20/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24.  
  25. #ifndef __SVAECREATE__
  26. #define __SVAECREATE__
  27.  
  28. #include <AppleEvents.h>
  29. #include <AEObjects.h>
  30. #include <AERegistry.h>
  31.  
  32. #include "SVToken.h"
  33.  
  34. pascal OSErr    DoNewElement(const AppleEvent    *theAppleEvent,
  35.                                     AppleEvent    *reply, 
  36.                                     long        handlerRefCon);
  37.  
  38. OSErr            CreateWindow(AEDesc* dataDesc, AEDesc* insertHereDesc,
  39.                                         AEDesc* propertyDesc, AEDesc* result);
  40.  
  41. OSErr            GetBehindWindow(AEDesc* insertDesc, DescType insertType, WindowPtr* behindWindow);
  42. OSErr            SetWindowPropertyRecord(WindowPtr theWindow, AEDesc* propertyRecord);
  43. OSErr            SetWindowData(WindowPtr theWindow, AEDesc* dataDesc);
  44.  
  45. OSErr            CreateText(DescType textType, AEDesc* dataDesc, AEDesc* insertHereDesc,
  46.                                                     AEDesc* propertyDesc, AEDesc* result);
  47. OSErr            GetInsertToken(AEDesc* insertDesc, DescType insertType, TextToken* resultToken);
  48. OSErr            CreateAtTextToken(DescType textType, const AEDesc* dataDesc, TextToken* theToken,
  49.                                                         AEDesc* propertyDesc, AEDesc* result);
  50. OSErr            SetTextPropertyRecord(TextToken* aTextToken, AEDesc* propertyRecord);
  51.  
  52. #endif
  53.